#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	int a = 0;
	int cnt = 0;
	for (a = 100; a <=200; a++)
	{
		int b = 0;
		int flag = 1;
		for (b = 2; b <=sqrt(a); b++)
		{
			if (a % b == 0)
			{
				flag = 0;
				break;
			}
		}
		if (flag==1)
		{
			cnt++;
			printf("%d ", a);
		}
		
	}
	printf("\n%d\n", cnt);
	return 0;
}